home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Tampa Bay Amiga Group
/
TBAG - Tampa Bay Amiga Group's Disk of the Month #61 (1991)(Merlin's Software - Amiganuts United)(PD).zip
/
TBAG - Tampa Bay Amiga Group's Disk of the Month #61 (1991)(Merlin's Software - Amiganuts United)(PD).adf
/
Docs
/
BootPic.docs
< prev
next >
Wrap
Text File
|
1991-10-25
|
10KB
|
235 lines
*******************************************************************************
* *
* BootPicV1.1 *
* *
* © 1991 by Andreas Ackermann *
* *
*******************************************************************************
CONTENTS:______________________________________________________________________
1. About shareware
2. Introduction
3. Installation
4. About the Parser
5. Kompatibility
6. What happens after resetting the machine ?
7. Possible sources of errors
8. About the programming
_______________________________________________________________________________
SHAREWARE-CONDITIONS:
BootPic is SHAREWARE. You are allowed to copy BootPic as long as the
following conditions are kept :
o BootPic mustn't be changed
o This DOC-file must be included
o It mustn't be charged any fee (besides fees for copying or disks etc.)
If you like BootPic and if you use it regularly or if you include parts of
the source in your own programms (e.g. the fading-routines) please feel free
to send me a small donation of 5$ or 5DM.
If you want to use BootPic as part of a commercial programme, you need my
written permission.
My Address: Andreas Ackermann
Lorenz-Summa-Str.10
W-8679 Oberkotzau
GERMANY
Tel.:09286/6399
Please note:
I wrote this software instead of doing a holiday job. If I'm able to earn some
money in this way, other programmes and updates will follow (e.g. color-cycling,
how about installing libraries resident [useful with arp.library] ?
INTRODUCTION
Do you belong to the group of people who think the «Workbench-hand» that
appears after every reset to be boring ?
Then BootPic is the right thing for you. It allows you to load (nearly) any
IFF-ILBM-picture instead of the «hand». (Overscan, HAM, Halfbright, etc.) It
just has to be in compressed form. (e.g. DPaint saves its pictures in compressed
form ).
The installed programme uses 1K more memory than the length of the picture-file.
[If there, it uses fast-memory]
INSTALLATION
BootPic can be started either from Workbench or CLI.
If started from WB an intuition-style window with three gadgets will open :
Load Picture : If you click on this gadget a window with a striggadget will
open and asks you to enter a filename. If you press RETURN,
BootPic will try to load this Picture, clicking on Cancel
will stop any action. If you've got the ARP-Library installed,
you'll get the ARP-Filerequester.
If you selected BootPic together with another icon (see at
example) you'll find its name already written in the string-
gadget when opening the filerequester.
Remove Picture :
Does nothing but that.
Info : Displays an info-message.
The error-messages are exactly the same as described below.
The color used to fade to after displaying the picture is taken from the
background color of the workbench screen at the moment it is being installed.
EXAMPLE:
To install the picture that is included on this Disk, do the
following steps:
Open the BootPic-drawer. Click on the demo.pic icon. Then double-
click on the BootPic icon while holding the SHIFT-key.
Click on the Load Picture -gadget and press RETURN.
After resetting and removing any disks in df0: you can watch the
picture.
When started from CLI, BootPic is controlled by commandline parameters as usual.
If no parameters are specified, a window as described above will open.
The syntax is as follows :
BootPic -e | -l{IFF-File} [-s][-r][-c rgb]
-l{IFF-File} Removes, if present, an old picture and then tries to install
a new one instead.
Message if it had success:
«Picture successfully installed. Have Fun !»
Possible faults:
«Couldn't open Picture-File»
«This is not an ILBM-Picturefile»
«Picture is not compressed»
«Warning:Couldn't find CAMG-Chunk»
CAMG-Chunk not found : The viewmodes are saved in this chunk
[e.g. Hires or Interlace etc.]. Until Kickstart 1.3 the picture
will be shown correctly despite of CAMG's missing.
[RESTRICTION: instead of Halfbright, HAM will be selected.]
«BODY-Chunk not found»
ILBM-File didn't contain image-data (should never happen).
«Memlist corrupt. Something went totally wrong»
Meaning see at -e
«Not enough Memory»
-e Removes, if present, an old picture.
Message if successful:
«Removed BootPic from List»
Possible faults:
«BootPic not installed. Couldn't remove it»
«Memlist corrupt. Something went totally wrong»
BootPic discovered its memory, but it couldn't find its entry in
the resident table (should never happen).
The following parameters work only together with -l :
-s loads the file specified by -l only if BootPic is not yet
installed. In this way it is possible to use BootPic in the
Startup-Sequence.
If BootPic was already installed it prints out :
«BootPic already installed. Changed nothing.»
-r BootPic resets the machine after loading the picture.
-c here you can specify the color which should be faded in after
showing the picture. Normally this is the background color of
your Workbench-Screen. The values of r,g and b must be specified
hexadecimal, so values from 0-9 and a-f are valid. [0 means that
this component isn't there at all and f means that it is there at
maximum idensity. (e.g. -c000 for black, -ce50 for orange).
Invalid values are accepted but the result will be other than
expected.
Default: 05a [Amiga-blue]
ABOUT the PARSER
All parameters may be specified either as small or capital letters. Every
parameter MUST start with «-», the order is at pleasure. Between the single
parmeters any number of spaces may be typed .
Valid calls would be :
bootpic -l :BootPic/demo.pic -R -c 7aB
bootpic -E
bootpic -cAE3 -S -l:bootpic/demo.pic
If -e or -l aren't specified, or if something else was typed wrong, BootPic
shows the usage.
If -e AND -l are specified, BootPic acts as if just -e was specified.
KOMPATIBILTY
BootPic installs itself in a «kindly» way, that means that any other resident
programme won't be removed, e.g. Guardian, CARD:, but also viruses.
In the same careful way it removes itself.
What happens after RESETTING the machine ?
When BootPic was successfully installed, the loaded picture will be faded in
softly whenever there's no bootable disk in df0: .
When inserting a bootable disk the colors will be faded softly to the color
specified under -c and your system starts as usual .
[The fading of HAM-pictures looks a little bit curious but that's NO bug.]
If you press the left mouse button while the picture is shown, the usual
workbench-hand appears.
Possbile SOURCES of ERRORS
Normally a picture that was once installed, stays in memory until you remove
it with -e [Remove Picture] or till you switch off your Amiga.
But there are some exceptions:
a.) If you play a game that believes all the memory belongs to itsself, it
is possible that the memory allocated by BootPic is overwritten.
Then you won't see the picture any more.
b.) Many viruses simply overwrite the reset-vectors. In this case BootPic
will be gone, too.
c.) Some virusdedectors (e.g. ATool) are of the opinion that every resident
programme is a virus, so BootPic will be removed, too.
If one of these cases should arise, it may be possible, that you get a GURU
after a reset. If you can't remove it by clicking the left mousebutton,
switching off the Amiga is the only thing you can do.
PROGRAMMING
BootPic was written with the Devpac 2.14D - Assembler, that's the reason for
its small code size [less than 9K ].
Many thanks go to JM Forgeas for the wonderful editor AZ V1.50.
The main programm still is exactly the the same as in V1.0, the only change
is, that V1.1 includes an intuition-interface. As the source doesn't contain
much new, I didn't include it this time. For those who just work in CLI and
who are interested in a small code size, I included once more V1.0, as it's
only half of the size.
It's a pity that I only received two letters till today [19.7.1991].
The only positive thing about this is that noone seems to have found a bug.
BootPic works well under Kickstart V1.2 and 1.3, but I wasn't able to test it
under Kickstart 2.0.
I am very thankful for critics, propositions and BUG-reports.
ENJOY !
Oberkotzau, july 19th 1991 Andreas Ackermann [*10.07.1974]
[ excuse my mistakes !!! ]